package com.yxp423.ssmempl.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @Description: java类作用描述
 * @Author: yxp
 * @CreateDate: 2019-05-06 11:06
 * @Version: 1.0
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString

@TableName("tbl_leave")
public class Leave {

    @TableId(type = IdType.UUID)
    private String applyId;
    private String userId;
    private Date startTime;
    private Date endTime;
    private String duration;
    private Date creatTime;
    private String applyDesc;
    private String reviewStatus;
    private String reviewerId;
    private Date reviewTime;

    /**
     * 表中不存在的字段，偷懒不写DTO
     */
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String reviewerName;

}
